//
//  ImageDetailTableViewCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/9.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "ImageDetailTableViewCell.h"
#import <UIImageView+WebCache.h>

@interface ImageDetailTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *parameLab;
@property (weak, nonatomic) IBOutlet UIImageView *detailImageView;


@end
@implementation ImageDetailTableViewCell


- (float)getParameCellHight:(NSString *)productParams
{
    self.productParams = productParams;
    [self layoutIfNeeded];
    float height = CGRectGetMaxY(self.parameLab.frame)+10;
    return height;
}
- (float)getCellImageHight:(NSString *)productParams
{
    self.productParams = productParams;
    [self layoutIfNeeded];
    float height = CGRectGetMaxY(self.parameLab.frame)+10;
    return height;
}
- (void)setProductParams:(NSString *)productParams
{
    _productParams = productParams;
    self.parameLab.text = productParams;
    self.detailImageView.hidden = YES;
    self.parameLab.hidden = NO;
}
- (void)setDetailStr:(NSString *)detailStr
{
    _detailStr = detailStr;
    [self.detailImageView sd_setImageWithURL:[NSURL URLWithString:detailStr] placeholderImage:GetImage(@"default_large_goods_image")];
    self.detailImageView.hidden = NO;
    self.parameLab.hidden = YES;
}

@end
